<?php
    class Admin_Form_ValidateTour
    {
        public function validateTourName($tour_name){
            $validate = new Zend_Validate_StringLength(1, 50);
            if($validate->isValid($tour_name)){
                return true;
            }
            else{
                return false;
            }
        }
        
        public function validateImage($tour_image){
            $validate = new Zend_Validate_NotEmpty();
            if($validate->isValid($tour_image)){
                return true;
            }
            else{
                return false;
            }
        }
        
        public function validateSearch($keyword){
            $validate = new Zend_Validate_NotEmpty();
            if($validate->isValid($keyword)){
                return true;
            }
            else{
                return false;
            }
        }
        
        
        
        
    }
